package com.atguigu.yygh.client;

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 数据字典API接口
 */
@FeignClient(value = "service-cmn",path ="/admin/cmn/dict" )
@Repository
public interface DictFeignClient {

    @ApiOperation(value = "获取数据字典名称--通过Code与value")
    @PostMapping(value = "/getName")
    public String getName(@RequestParam("value") String value, @RequestParam(value = "dictcode",defaultValue = "") String dictcode);

}
